home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / frame_11 / DoAction.as
Text File  |  2007-09-27  |  11KB  |  75 lines

  1. function cook()
  2. {
  3.    if(_root.no == 1)
  4.    {
  5.       if(_root.chr._currentframe == 7 && _root.chr.subbread2._visible == false && _root.chr.bread2._visible == true && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == false && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == true && _root.chr.ham._visible == false && _root.chr.tomatos._visible == false && _root.chr.cucumbers._visible == true && _root.chr.dbacon._visible == false && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == false && _root.chr.reggs._visible == false && _root.chr.fegg._visible == false && _root.chr.jelly._visible == false && _root.chr.peanutbutter._visible == false && _root.chr.sham._visible == false && _root.chr.cheese._visible == false)
  6.       {
  7.          _root.chr.gotoAndPlay("good");
  8.          _root.chr.good.gotoAndStop(1);
  9.       }
  10.       else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 8 || _root.chr._currentframe == 9 || _root.chr._currentframe == 10 || _root.chr.subbread2._visible == true || _root.chr.bread2._visible == true || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == true || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == false || _root.chr.ham._visible == true || _root.chr.tomatos._visible == true || _root.chr.cucumbers._visible == false || _root.chr.dbacon._visible == true || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == true || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == true || _root.chr.peanutbutter._visible == true || _root.chr.sham._visible == true || _root.chr.cheese._visible == true)
  11.       {
  12.          _root.chr.gotoAndPlay("bad");
  13.          _root.chr.bad.gotoAndStop(1);
  14.       }
  15.    }
  16.    if(_root.no == 2)
  17.    {
  18.       if(_root.chr._currentframe == 7 && _root.chr.subbread2._visible == false && _root.chr.bread2._visible == true && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == false && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == false && _root.chr.ham._visible == false && _root.chr.tomatos._visible == false && _root.chr.cucumbers._visible == false && _root.chr.dbacon._visible == false && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == false && _root.chr.reggs._visible == false && _root.chr.fegg._visible == false && _root.chr.jelly._visible == true && _root.chr.peanutbutter._visible == true && _root.chr.sham._visible == false && _root.chr.cheese._visible == false)
  19.       {
  20.          _root.chr.gotoAndPlay("good");
  21.          _root.chr.good.gotoAndStop(2);
  22.       }
  23.       else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 8 || _root.chr._currentframe == 9 || _root.chr._currentframe == 10 || _root.chr.subbread2._visible == true || _root.chr.bread2._visible == false || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == true || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == true || _root.chr.ham._visible == true || _root.chr.tomatos._visible == true || _root.chr.cucumbers._visible == true || _root.chr.dbacon._visible == true || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == true || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == false || _root.chr.peanutbutter._visible == false || _root.chr.sham._visible == true || _root.chr.cheese._visible == true)
  24.       {
  25.          _root.chr.gotoAndPlay("bad");
  26.          _root.chr.bad.gotoAndStop(2);
  27.       }
  28.    }
  29.    if(_root.no == 3)
  30.    {
  31.       if(_root.chr._currentframe == 8 && _root.chr.subbread2._visible == true && _root.chr.bread2._visible == false && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == false && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == false && _root.chr.ham._visible == false && _root.chr.tomatos._visible == false && _root.chr.cucumbers._visible == false && _root.chr.dbacon._visible == false && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == false && _root.chr.reggs._visible == false && _root.chr.fegg._visible == true && _root.chr.jelly._visible == false && _root.chr.peanutbutter._visible == false && _root.chr.sham._visible == true && _root.chr.cheese._visible == true)
  32.       {
  33.          _root.chr.gotoAndPlay("good");
  34.          _root.chr.good.gotoAndStop(3);
  35.       }
  36.       else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 7 || _root.chr.subbread2._visible == false || _root.chr.bread2._visible == true || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == true || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == true || _root.chr.ham._visible == true || _root.chr.tomatos._visible == true || _root.chr.cucumbers._visible == true || _root.chr.dbacon._visible == true || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == true || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == true || _root.chr.peanutbutter._visible == true || _root.chr.sham._visible == false || _root.chr.cheese._visible == false)
  37.       {
  38.          _root.chr.gotoAndPlay("bad");
  39.          _root.chr.bad.gotoAndStop(3);
  40.       }
  41.    }
  42.    if(_root.no == 4)
  43.    {
  44.       if(_root.chr._currentframe == 7 && _root.chr.subbread2._visible == false && _root.chr.bread2._visible == true && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == false && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == false && _root.chr.ham._visible == false && _root.chr.tomatos._visible == false && _root.chr.cucumbers._visible == false && _root.chr.dbacon._visible == true && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == true && _root.chr.reggs._visible == false && _root.chr.fegg._visible == false && _root.chr.jelly._visible == false && _root.chr.peanutbutter._visible == false && _root.chr.sham._visible == false && _root.chr.cheese._visible == true)
  45.       {
  46.          _root.chr.gotoAndPlay("good");
  47.          _root.chr.good.gotoAndStop(4);
  48.       }
  49.       else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 8 || _root.chr._currentframe == 9 || _root.chr._currentframe == 10 || _root.chr.subbread2._visible == true || _root.chr.bread2._visible == false || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == true || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == true || _root.chr.ham._visible == true || _root.chr.tomatos._visible == true || _root.chr.cucumbers._visible == true || _root.chr.dbacon._visible == false || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == false || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == true || _root.chr.peanutbutter._visible == true || _root.chr.sham._visible == true || _root.chr.cheese._visible == false)
  50.       {
  51.          _root.chr.gotoAndPlay("bad");
  52.          _root.chr.bad.gotoAndStop(4);
  53.       }
  54.    }
  55.    if(_root.no == 5)
  56.    {
  57.       if(_root.chr._currentframe == 7 && _root.chr.subbread2._visible == false && _root.chr.bread2._visible == true && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == true && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == false && _root.chr.ham._visible == false && _root.chr.tomatos._visible == true && _root.chr.cucumbers._visible == false && _root.chr.dbacon._visible == false && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == true && _root.chr.reggs._visible == false && _root.chr.fegg._visible == false && _root.chr.jelly._visible == false && _root.chr.peanutbutter._visible == false && _root.chr.sham._visible == false && _root.chr.cheese._visible == false)
  58.       {
  59.          _root.chr.gotoAndPlay("good");
  60.          _root.chr.good.gotoAndStop(5);
  61.       }
  62.       else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 8 || _root.chr._currentframe == 9 || _root.chr._currentframe == 10 || _root.chr.subbread2._visible == true || _root.chr.bread2._visible == false || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == false || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == true || _root.chr.ham._visible == true || _root.chr.tomatos._visible == false || _root.chr.cucumbers._visible == true || _root.chr.dbacon._visible == true || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == false || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == true || _root.chr.peanutbutter._visible == true || _root.chr.sham._visible == true || _root.chr.cheese._visible == true)
  63.       {
  64.          _root.chr.gotoAndPlay("bad");
  65.          _root.chr.bad.gotoAndStop(5);
  66.       }
  67.    }
  68. }
  69. this.stop();
  70. num = 1;
  71. no = 0;
  72. bad = 0;
  73. good = 0;
  74. stop();
  75.